/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds;

import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.URLEncoder;


public class URLEncodingWriter extends OutputStreamWriter{
    public URLEncodingWriter(OutputStream out)
    {
        super(out);
    }
    @Override
    public void write(String s) throws IOException
    {
        super.write(URLEncoder.encode(s, "UTF-8"));
    }
}
